-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TAS-3080] 🚸 Enhance search behavior #2018
[TAS-3080] 🚸 Enhance search behavior #2018
Conversation
'rounded-[0px] desktop:rounded-[10px]', | ||
'transition-[width]', | ||
'duration-[5000]', | ||
'duration-[300]', | ||
'ease-in-out', | ||
]" | ||
> | ||
<IconSearch /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this icon clickable so that it also serve as the open
/submit
button if people can't press enter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/SearchBar.vue
Outdated
this.randomKeywords?.[0] || this.$t('gutenberg_search_placeholder'); | ||
this.$emit('input', fallbackKeyword); | ||
handleInput(event) { | ||
this.currentSearchQuery = event.target.value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need to set currentSearchQuery
explicitly in @input
if it is in v-model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/SearchBar.vue
Outdated
'h-full', | ||
isSearchOpen && 'pl-[16px] pr-[4px]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isSearchOpen && 'pl-[16px] pr-[4px]', | |
{ 'pl-[16px] pr-[4px]': isSearchOpen }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025-01-16.7.53.08.mp4